package com.leo.train.business.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class DailyTrainTicket implements Serializable {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date date;

    private String trainCode;
    private String start;
    private String startPinyin;

    @JsonFormat(pattern = "HH:mm:ss", timezone = "GMT+8")
    private Date startTime;

    private Integer startIndex;
    private String end;
    private String endPinyin;

    @JsonFormat(pattern = "HH:mm:ss", timezone = "GMT+8")
    private Date endTime;

    private Integer endIndex;
    private Integer ydz;
    private BigDecimal ydzPrice;
    private Integer edz;
    private BigDecimal edzPrice;
    private Integer rw;
    private BigDecimal rwPrice;
    private Integer yw;
    private BigDecimal ywPrice;
    private Date createTime;
    private Date updateTime;
}
